//
//  JoinHomeViewCell.m
//  AILock
//
//  Created by 谭亚明 on 2020/6/28.
//  Copyright © 2020 tym. All rights reserved.
//

#import "JoinHomeViewCell.h"
#import "UIImageView+YPImage.h"
@interface JoinHomeViewCell ()

@property(nonatomic,weak) IBOutlet UIImageView *headImage;
@property(nonatomic,weak) IBOutlet UILabel *nameLab;
@property(nonatomic,weak) IBOutlet UILabel *mobileLab;
@end
 
@implementation JoinHomeViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

+(NSString*)identifier{
    return @"JoinHomeViewCell";
}



+(CGFloat)cellForHeight{
    return 70;
}

-(void)setModel:(FamilyModel *)model{
    
    self.nameLab.text = model.familyName;
    self.mobileLab.text = model.mobile;
    [self.headImage yp_setImageUlr:[model getFamileHeadImage] placeHolder:@"icon_home3"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
